$OpenBSD: patch-opal_asm_base_MIPS_asm,v 1.1 2010/06/14 10:12:46 jasper Exp $

- include correct headers.
- LEAF needs two arguments.

--- opal/asm/base/MIPS.asm.orig	Mon Jun 14 09:41:43 2010
+++ opal/asm/base/MIPS.asm	Mon Jun 14 09:42:33 2010
@@ -1,31 +1,31 @@
 START_FILE
 
-#include <sys/asm.h>
-#include <regdef.h>
+#include <machine/asm.h>
+#include <machine/regdef.h>
 	
 	TEXT
 
 	ALIGN(8)
-LEAF(opal_atomic_mb)
+LEAF(opal_atomic_mb, 0)
 	sync
 	j	ra
 END(opal_atomic_mb)
 
 	
 	ALIGN(8)
-LEAF(opal_atomic_rmb)
+LEAF(opal_atomic_rmb, 0)
 	sync
 	j	ra
 END(opal_atomic_rmb)
 	
 	
-LEAF(opal_atomic_wmb)
+LEAF(opal_atomic_wmb, 0)
 	sync
 	j	ra
 END(opal_atomic_wmb)
 
 
-LEAF(opal_atomic_cmpset_32)
+LEAF(opal_atomic_cmpset_32, 0)
 	.set noreorder        
 retry1:                
 	ll     $3, 0($4)         
@@ -42,7 +42,7 @@ done1:                 
 END(opal_atomic_cmpset_32)
 
 
-LEAF(opal_atomic_cmpset_acq_32)
+LEAF(opal_atomic_cmpset_acq_32, 0)
 	.set noreorder        
 retry2:                
 	ll     $3, 0($4)         
@@ -60,7 +60,7 @@ done2:                 
 END(opal_atomic_cmpset_acq_32)
 
 	
-LEAF(opal_atomic_cmpset_rel_32)
+LEAF(opal_atomic_cmpset_rel_32, 0)
 	.set noreorder        
 	sync
 retry3:                
@@ -78,7 +78,7 @@ done3:                 
 END(opal_atomic_cmpset_rel_32)
 	
 	
-LEAF(opal_atomic_cmpset_64)
+LEAF(opal_atomic_cmpset_64, 0)
 		.set noreorder        
 retry4:                
 	lld    $3, 0($4)         
@@ -95,7 +95,7 @@ done4:                 
 END(opal_atomic_cmpset_64)
 
 
-LEAF(opal_atomic_cmpset_acq_64)
+LEAF(opal_atomic_cmpset_acq_64, 0)
 	.set noreorder        
 retry5:                
 	lld    $3, 0($4)         
@@ -112,7 +112,7 @@ done5:                 
 END(opal_atomic_cmpset_acq_64)
 
 
-LEAF(opal_atomic_cmpset_rel_64)
+LEAF(opal_atomic_cmpset_rel_64, 0)
 	.set noreorder        
 	sync
 retry6:                
